package com.xyw.his00.utils.NumberUtils;
import java.time.LocalDate;
import java.util.Random;
public class RandomUtil {
   static Random random=new Random();

    //生成一个随机病历号
    public static String getRandomOrderNo(){
        //采用int范围内的随机数+日期再加入一个随机生成的6位数+再取2到8位保证病历号的随机性不重复性
        String str=LocalDate.now().toString();
        return new String(random.nextInt()+str+random.nextInt(99999,999999)).substring(2,10);


    }
}
